#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int A[6] = { 1,5,4,8,9,3 };
	int B[6] = { 8,9,5,6,7,8 };
	for(int i = 0; i < 6; i++)
	{
		int tmp = A[i];
		A[i] = B[i];
		B[i] = tmp;
	}

	for (int i = 0; i < 6; i++)
	{
		printf("%d ", A[i]);
	}
	printf("\n");

	for (int i = 0; i < 6; i++)
	{
		printf("%d ", B[i]);
	}
	printf("\n");

	return 0;
}